package com.ky.home.config;
import com.ky.common.config.RabbitKeyConfig;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;



/**
 * --- 天道酬勤 ---
 *
 * @version 代码敲烂，月薪过万
 * @Author liguohui
 * @Date 2024/6/6 14:52
 * @desc
 */
@Configuration  //表明是配置类
public class RabbitConfig {
    @Bean //在容器中创建rabbit 队列
    public Queue smsQueue(){
        return new Queue(RabbitKeyConfig.Q_SENDSMS);
    }

    @Bean
    public Queue growthQueue(){
        return new Queue(RabbitKeyConfig.Q_USER_GROWTH);
    }
}
